package com.irs.irsforum.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.irs.irsforum.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yihuili
 * @since 2020-02-15
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    Integer setUser(@Param("user") User user);

    User getUserByRoleOriginId(@Param("user") User user);

    User getUserById(@Param("userId") Long userId);

    List<Long> getUserListByOriginId(List<Long> originIdList);

    Integer updateUserNickeName(@Param("user") User user);
}
